<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta http-equiv="Expires" content="0">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-control" content="no-cache">
    <meta http-equiv="Cache" content="no-cache">
    <title>外贸合同</title>
    <link rel="shortcut icon" type="image/x-icon" href="/images/logo.ico" />
    <link rel="stylesheet" type="text/css" href="/layui/css/layui.css?v=202001010101" />
    <link rel="stylesheet" type="text/css" href="/css/font-awesome.min.css?v=202001010101" />
    <link rel="stylesheet" type="text/css" href="/css/style.css?v=202001010101">
    <link rel="stylesheet" type="text/css" href="/css/print.css?v=202001010101">
</head>
<body>
<div class="pring-page">
    <div class="print-btns layui-form">
        <button type="button" class="layui-btn layui-btn-primary layui-btn-sm" id="print"><i class="fa fa-print"></i> 打印</button>
        <button type="button" class="layui-btn layui-btn-primary layui-btn-sm" id="exportPdf"><i class="fa fa-file-pdf-o"></i> 导出PDF</button>
    </div>
    <div class="main">
        <div class="page-break">
            <div class="head">
                <div class="title22">采购合同</div>
                <div class="title22">PURCHASE CONTRACT</div>
                <hr/>
            </div>
            <div id="conTempView">

            </div>
        </div>
    </div>
</div>
<script type="text/html" id="conTemp">
    <table style="width: 100%">
        <tr>
            <td>签定日期： </td>
            <td>{{d.purchaseContract.signingDate}}</td>
            <td>合同编号：</td>
            <td class="title12">{{d.purchaseContract.docNo}}</td>
        </tr>
        <tr>
            <td>签定地点： </td>
            <td>{{d.purchaseContract.signingPlace}}</td>
            <td>客户单号：</td>
            <td class="title12">{{d.purchaseContract.customerOrderNo}}</td>
        </tr>
        <tr>
            <td>买方：</td>
            <td>{{d.purchaseContract.buyerName}}</td>
            <td>卖方：</td>
            <td>{{d.purchaseContract.sellerName}}</td>
        </tr>
        <!--
        <tr>
            <td>地址：</td>
            <td>{{d.purchaseContract.buyerBankAddress}}</td>
            <td>地址：</td>
            <td>{{d.purchaseContract.sellerBankAddress}}</td>
        </tr>
        <tr>
            <td>电话：</td>
            <td>{{d.purchaseContract.buyerTel}}</td>
            <td>电话：</td>
            <td>{{d.purchaseContract.sellerTel}}</td>
        </tr>
        -->
    </table>
    <div style="text-align: left; margin-top: 8px; margin-bottom: 4px;">
        根据《中华人民共和国合同法》及相关法律法规，本着平等自愿、等价有偿、诚实信用原则，经买卖双方同意由卖方售出买方购进如下货物，并按下列条款签订本合同：
    </div>
    <div style="text-align: left; margin-bottom: 4px;">
        一、产品名称、规格、数量、金额
    </div>
    <div class="printArea" style="margin-bottom: 8px">
        <table>
            <thead>
            <tr>
                <th>行号</th>
                <th>品名</th>
                <th>品牌</th>
                <th>型号</th>
                <th>数量</th>
                <th>单位</th>
                <th>单价</th>
                <th>总价</th>
                <th>币制</th>
            </tr>
            </thead>
            <tbody>
            {{# $.each(d.members,function(i,o){}}
            <tr>
                <td style="text-align: center">{{i+1}}</td>
                <td>{{o.name}}</td>
                <td>{{isNotEmpty(o.brand) && !o.brand.endsWith('牌') ? o.brand + '牌' : o.brand}}</td>
                <td>{{o.model}}</td>
                <td style="text-align: right">{{formatCurrency(o.quantity)}}</td>
                <td style="text-align: center">{{o.unitName}}</td>
                <td style="text-align: right">{{o.unitPrice}}</td>
                <td style="text-align: right">{{formatCurrency(o.totalPrice)}}</td>
                <td style="text-align: center">人民币</td>
            </tr>
            {{#});}}
            </tbody>
            <tfoot>
            <tr>
                <td colspan="4">合计 Total：</td>
                <td style="text-align: right">{{formatCurrency(d.tquantity)}}</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td style="text-align: right">{{formatCurrency(d.ttotalPrice)}}</td>
                <td>&nbsp;</td>
            </tr>
            </tfoot>
        </table>
    </div>
    <table style="width: 100%">
        <tr>
            <td>二、质量及验货：按买卖双方约定的质量要求，符合出口质量标准，买方对货物的品名、品牌、型号、规格、数量等进行检验；</td>
        </tr>
        <tr>
            <td>三、包装方式：原厂包装；</td>
        </tr>
        <tr>
            <td>四、交货地点：按买、卖双方约定地点交货；</td>
        </tr>
        <tr>
            <td>五、付款方式及期限：买方收到境外客户的全部外汇款项后T/T支付货款。</td>
        </tr>
        <tr>
            <td>六、交货期：卖方须于{{d.purchaseContract.deliveryDate}}前全部交货完毕；</td>
        </tr>
        <tr>
            <td>七、运输及保险：买方负责安排货物的运输及保险，相关费用按《物流报价单》执行；</td>
        </tr>
        <tr>
            <td>八、合同有效期：经双方盖章后生效，有效期至{{d.purchaseContract.effectiveDate}}；</td>
        </tr>
        <tr>
            <td>九、解决合同争议：凡因执行本合同所发生的或与本合同有关的一切争议，应由双方通过友好协商解决。如协商不能解决，任何一方均可向本协议签订地人民法院提起诉讼解决。</td>
        </tr>
        </tr>
        <tr>
            <td>十、其它约定事项：无；</td>
        </tr>
        </tr>
        <tr>
            <td>十一、本合同一式贰份，双方各执一份。</td>
        </tr>
        </tr>
    </table>
    <div style="position: absolute;width: 98%;overflow: hidden;height: 200px;margin-top: -10px">
        <table style="width: 100%;position: inherit;z-index: 10">
            <tr>
                <td height="80" width="50%">
                    <div style="float:left">买方：</div>
                    <div style="float:left">{{d.purchaseContract.buyerName}}</div>
                </td>
                <td width="50%">
                    <div style="float:left">卖方：</div>
                    <div style="float:left">{{d.purchaseContract.sellerName}}</div>
                </td>
            </tr>
            <tr>
                <td height="20" width="50%">
                    <div style="float:left">地址：</div>
                    <div style="float:left">{{d.purchaseContract.buyerBankAddress}}</div>
                </td>
                <td width="50%">
                    <div style="float:left">地址：</div>
                    <div style="float:left">{{d.purchaseContract.sellerBankAddress}}</div>
                </td>
            </tr>
            <tr>
                <td height="20" width="50%">
                    <div style="float:left">电话：</div>
                    <div style="float:left">{{d.purchaseContract.buyerTel}}</div>
                </td>
                <td width="50%">
                    <div style="float:left">电话：</div>
                    <div style="float:left">{{d.purchaseContract.sellerTel}}</div>
                </td>
            </tr>
            <tr>
                <td height="20" width="50%">
                    <div style="float:left">开户行：</div>
                    <div style="float:left">{{d.purchaseContract.buyerBank}}</div>
                </td>
                <td width="50%">
                    <div style="float:left">开户行：</div>
                    <div style="float:left">{{d.purchaseContract.sellerBank}}</div>
                </td>
            </tr>
            <tr>
                <td height="20" width="50%">
                    <div style="float:left">银行账号：</div>
                    <div style="float:left">{{d.purchaseContract.buyerBankNo}}</div>
                </td>
                <td width="50%">
                    <div style="float:left">银行账号：</div>
                    <div style="float:left">{{d.purchaseContract.sellerBankNo}}</div>
                </td>
            </tr>
            <tr>
                <td height="30">签约代表：{{d.purchaseContract.buyerDeputy}}</td>
                <td>签约代表：{{d.purchaseContract.sellerDeputy}}</td>
            </tr>
        </table>
    </div>
</script>
<script type="text/javascript" src="/js/jquery.min.js?v=202001010101"></script>
<script type="text/javascript" src="/layui/layui.js?v=202001010101"></script>
<script type="text/javascript" src="/js/app.js?v=202006010928"></script>
<script type="text/javascript" src="/finance/purchaseContract/print-contract.js?v=202001010110"></script>
</body>
</html>